.single .main-inner {
    width: $postWidth;
}

.post-title {
    text-align: center;
}

.post-subtitle {
    font-size: 1.8em;
    text-align: center;
    font-weight: 700;
    margin-top: -0.618em;
}

.post-description {
    text-align: center;
    margin: $fontSize 0;
    font-size: 90%;
}

.post-body {
    margin-top: 5em !important;
    a {
        text-decoration: underline;
    }
}

.post {
    p {
        margin: 0 0 1em;
        line-height: $lineHeight;
    }
    img {
        display: block;
        margin: 2em auto;
        max-width: 100%;
        border: 1px solid var(--color-contrast-lower);
        clear: both;
    }
    video {
        display: block;
        max-width: 100%;
        margin: 2em auto;
        clear: both;
    }
    sup {
        font-size: 70%;
        vertical-align: super;
        a {
            text-decoration: none;
        }
    }
    ol, ul {
        padding-left: 2em;
        line-height: $lineHeight;
    }
    hr {
        border: none;
        margin: 2.427em 0 1.5em;
        text-align: center;
        &::after {
            content: "···";
            letter-spacing: 2em;
            padding-left: 2em;
        }
    }
}

blockquote {
    margin: 2em 0;
    padding-left: 1em;
    color: var(--color-contrast-medium);
    border-left: 3px solid var(--color-contrast-low);
    a {
        color: var(--color-contrast-medium);
        &:hover {
            color: var(--color-primary);
        }
    }
}

.drop-cap {
    float: left;
    font-size: $fontSize * 3 + 2px;
    margin-right: $lineHeight * $fontSize - $fontSize;
    margin-top: $fontSize / 2;
    line-height: $lineHeight * $fontSize;
}

.caption {
    display: block;
    text-align: center;
    margin: -1em 0 0;
    font-size: 90%;
    color: var(--color-contrast-medium);
}

.contents {
    margin-top: 5em;
    ol {
        list-style: none;
        counter-reset: item;
        li::before {
            content: counters(item, ".") ". ";
            counter-increment: item;
        }
    }
}
ol.toc {
    padding: 0;
    overflow: auto hidden;
    white-space: nowrap;
}

.footnotes {
    font-size: 90%;
    margin-top: $fontSize * 5;
    hr {
        margin: 0;
        height: 1px;
        border: none;
        background-color: var(--color-contrast-medium);
        &::after {
            content: none;
        }
    }
    ol {
        margin: ($fontSize * 1.618) 0 0 !important;
        padding: 0 $fontSize 0 ($fontSize * 2) !important;
    }
}

.anchor-link {
    position: absolute;
    transform: translate(-150%);
}
.anchor-icon {
    width: 0.75em;
    height: 0.75em;
    vertical-align: baseline;
}

table {
    display: block;
    border-collapse: collapse;
    border-spacing: 0;
    border-color: var(--color-contrast-lower);
    margin: 2em 0;
    overflow-x: auto;
}
th {
    font-weight: 700;
}
th, td {
    font-size: 0.9em;
    padding: 0.4em;
    border: 1px solid var(--color-contrast-lower);
}
table > tbody > tr:nth-of-type(odd) {
    background-color: alpha(var(--color-contrast-lower), 0.5);
}
table > tbody > tr:hover {
    background-color: var(--color-contrast-lower);
}

dt {
    font-weight: 700;
}
dd {
    margin-left: 2em;
}

code {
    padding: ($fontSize / 8) ($fontSize / 4);
    background-color: var(--color-contrast-lower);
    border-radius: 3px;
    font-size: 80%;
}
pre {
    overflow: auto hidden;
    font-size: $fontSize * 0.8;
    margin: ($fontSize * 2) 0;
    padding: 1em;
    line-height: 1.618;
    background-color: alpha(var(--color-contrast-lower), 0.75);
    code {
        background-color: unset;
        font-size: inherit;
        padding: 0;
    }
}

.katex-display, mjx-container[jax="CHTML"][display="true"] {
    overflow: auto hidden;
    text-indent: 0;
}
